﻿﻿﻿﻿<#import "/common/function.ftl" as fn>
<@fn.header _title="">
<script type="text/javascript" src="${base}/resources/script/jquery.pager.js"></script>
<script type="text/javascript" src="${base}/resources/script/date97/WdatePicker.js"></script>
</@fn.header>

<body style="width:100%" class="list">
<form id="listForm" action="list" method="post">
	<h2><img src="${base}/resources/style/images/iconDivM.gif" width="16" height="16" />日志管理</h2>
	<div class="tabnav">
        <ul>
            <li><a href="../userlog/list" >用户操作日志</a></li>
            <li class="visited"><a>系统运行日志</a></li>
        </ul>
    </div>
    <br style="clear:both;" />
	<div class="title">
		<div class="title-middle">
			<div class="title-left"></div>
			<div class="title-caption">
				<label style="font-weight:bold;">用户账号: </label>
				<input type="hidden" name="propertyList" value="username"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text" name="keywordList" value="${(pager.keywordList[0])!}" />
				<label style="font-weight:bold;">起始日期: </label>
				<input type="hidden" name="propertyList" value="createDate"/>
				<input type="hidden" name="compareTypeList" value="ge"/>
				<input type="text" name="createDate" class="formText" onClick="WdatePicker()" value="${(pager.keywordList[1])!}" />
				<label style="font-weight:bold;">终止日期: </label>
				<input type="hidden" name="propertyList" value="createDate"/>
				<input type="hidden" name="compareTypeList" value="le"/>
				<input type="text" name="createDate" class="formText" onClick="WdatePicker()" value="${(pager.keywordList[2])!}" />
				<label>每页显示: </label>
				<select name="pageSize" id="pageSize">
					<option value="10"<#if pager.pageSize == 10> selected</#if>>10</option>
					<option value="20"<#if pager.pageSize == 20> selected</#if>>20</option>
					<option value="50"<#if pager.pageSize == 50> selected</#if>>50</option>
					<option value="100"<#if pager.pageSize == 100> selected</#if>>100</option>
				</select>
				<input type="submit" id="searchButton" class="button" value="搜 索" />
			</div>
            <div class="title-right"></div>
		</div>
	</div>
	<table class="table2" id="userListTable">
		<tr>
			<th>账号</th>
			<th>所属机构</th>
			<th>操作时间</th>
			<th>操作</th>
			<th>错误信息</th>
		</tr>
		<#list pager.result as systemLogInfo>
		<tr>
			<td>
				${systemLogInfo.username}
			</td>
			<td>
				<#if systemLogInfo.region != null>${(systemLogInfo.region.name)!}<#else>该用户未分配机构</#if>
			</td>
			<td>
				${systemLogInfo.createDate}
			</td>
			<td>
				${systemLogInfo.operation}
			</td>
			<td>
				${systemLogInfo.errorMessage}
			</td>
		</tr>
		</#list>
	</table>
	<@fn.pagerCode />
</form>
</body>
</html>